package com.zy.uml;

/**
 * @Author Gong
 * @Description 测试企鹅
 * @dATE 2021/11/20 21:43
 **/
public class TestAnimal {
    public static void main(String[] args) {
        String feather ="我是黑白的羽毛";
        Wing[] wings = new Wing[]{new Wing("黑白翅膀"),new Wing("黑白翅膀")};


        Climate climate=new Climate();
        climate.setTq("南极气候");
        Penguin penguin = new Penguin(feather,wings,climate);
        System.out.println(penguin);
        penguin.layEggs();

    }
}
